using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using FutureOpen.Core.func.sql;
using FutureOpen.Web.Pages;
public partial class controls_GroupHotUsr : System.Web.UI.UserControl
{
    private PageBase pbase;
    private int group_id;

    protected void Page_Load(object sender, EventArgs e)
    {
        pbase = (PageBase)this.Page;
        pbase.PageInit();
        group_id = pbase.orgid;

        if (!Page.IsPostBack)
        {
            LoadUsers();
        }
    }
    public void LoadUsers()
    {
        if (this.group_id >= 0)
        {
            DataSet ds = UsrProvider.GetGroupHotUsrInfo(group_id);
            this.dlUsrs.DataSource = ds.Tables[0];
            this.dlUsrs.DataBind();
        }

    }
    public string GetUsrUrl(object id, object name)
    {
        return "<a href=\"UsrView.aspx?usrid="+id+"\">"+name+"</a>";
    }
}
